The total size of the serialized string is 22 bytes : 2 bytes per unicode utf - 16 character , multiplied by the maximum number of characters , plus 2 control bytes of overhead incurred from serializing a binary stream 序列化udt時,序列化字符串的總大小為22字節:每個unicode utf - 16字符占2個字節,乘以最大字符數,再加上因序列化二進制流而導致的系統開銷2個控制字節。
The total size of the serialized string is 22 bytes : 2 bytes per unicode utf - 16 character , multiplied by the maximum number of characters , plus 2 control bytes of overhead incurred from serializing a binary stream . so , when determining the value of 序列化該字符串時,序列化后的字符串的總大小為22個字節:每個unicode utf - 16字符占據的字節數2乘以最大字符數10 ,再加上序列化二進制流所引入的開銷占用的2個控制字節。